package cn.jiyun.service.impl;

import cn.jiyun.entity.Message;
import cn.jiyun.entity.Yddgl;
import cn.jiyun.mapper.MessageMapper;
import cn.jiyun.model.User;
import cn.jiyun.service.MessageService;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class MessageServiceImpl extends ServiceImpl<MessageMapper, Message> implements MessageService {
    @Override
    public Page findPage(Integer pageNum, Integer pageSize, Message message) {
        Page<Message> messagePage = new Page<>(pageNum, pageSize);
        List<Message> list = baseMapper.findPage(messagePage,message);
        return messagePage.setRecords(list);
    }



}
